﻿using System;

namespace JinianNet.JNCms.Models
{
    public class Attachment
    {
        private int _id = 0;
        private string _title = string.Empty;
        private string _originalname = string.Empty;
        private string _savename = string.Empty;
        private int _size = 0;
        private bool _ispicture = false;
        private string _extension = string.Empty;
        private bool _hasthumbnails = false;
        private string _thumbnailname = string.Empty;
        private string _mime = string.Empty;
        private DateTime _createtime = DateTime.Now;
        private string _folder = string.Empty;
        private int _valueid = 0;
        private int _typeid = 0;
        private int _userid = 0;

        /// <summary>
        /// 
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 文件原名
        /// </summary>
        public string OriginalName
        {
            set { _originalname = value; }
            get { return _originalname; }
        }
        /// <summary>
        /// 保存名
        /// </summary>
        public string SaveName
        {
            set { _savename = value; }
            get { return _savename; }
        }

        /// <summary>
        /// 大小
        /// </summary>
        public int Size
        {
            set { _size = value; }
            get { return _size; }
        }
        /// <summary>
        /// 是否图片
        /// </summary>
        public bool IsPicture
        {
            set { _ispicture = value; }
            get { return _ispicture; }
        }
        /// <summary>
        /// 后缀
        /// </summary>
        public string Extension
        {
            set { _extension = value; }
            get { return _extension; }
        }
        /// <summary>
        /// 是否有缩略图
        /// </summary>
        public bool HasThumbnails
        {
            set { _hasthumbnails = value; }
            get { return _hasthumbnails; }
        }
        /// <summary>
        /// 缩略图名称
        /// </summary>
        public string ThumbnailName
        {
            set { _thumbnailname = value; }
            get { return _thumbnailname; }
        }
        /// <summary>
        /// mini类型
        /// </summary>
        public string Mime
        {
            set { _mime = value; }
            get { return _mime; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 保存文件夹
        /// </summary>
        public string Folder
        {
            set { _folder = value; }
            get { return _folder; }
        }
        /// <summary>
        /// 关联ID
        /// </summary>
        public int ValueID
        {
            set { _valueid = value; }
            get { return _valueid; }
        }
        /// <summary>
        /// 关联类型
        /// </summary>
        public int TypeID
        {
            set { _typeid = value; }
            get { return _typeid; }
        }

        /// <summary>
        /// 上传用户
        /// </summary>
        public int UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
    }
}
